package com.zy.oauth.controller;

import com.zy.common.core.R;
import com.zy.oauth.service.SystemsService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/openApi/test")
public class TestController {

    @Resource
    private SystemsService systemsService;

    @GetMapping("/systemsAll")
    public R<?> systemsAll() {
        return R.ok(systemsService.all());
    }
}
